home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / access3g / download.frm (.txt) next >
Encoding:
Visual Basic Form  |  1999-08-17  |  2.7 KB  |  91 lines

  1. VERSION 5.00
  2. Object = "{48E59290-9880-11CF-9754-00AA00C00908}#1.0#0"; "MSINET.OCX"
  3. Begin VB.Form Form1 
  4.    Caption         =   "Form1"
  5.    ClientHeight    =   3885
  6.    ClientLeft      =   60
  7.    ClientTop       =   345
  8.    ClientWidth     =   5235
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   3885
  11.    ScaleWidth      =   5235
  12.    StartUpPosition =   3  'Windows Default
  13.    Begin InetCtlsObjects.Inet InetWeb 
  14.       Left            =   3960
  15.       Top             =   600
  16.       _ExtentX        =   1005
  17.       _ExtentY        =   1005
  18.       _Version        =   393216
  19.    End
  20.    Begin VB.CommandButton Command2 
  21.       Caption         =   "&Save it"
  22.       Height          =   255
  23.       Left            =   2760
  24.       TabIndex        =   3
  25.       Top             =   3120
  26.       Width           =   1215
  27.    End
  28.    Begin VB.CommandButton Command1 
  29.       Caption         =   "&Get It"
  30.       Height          =   255
  31.       Left            =   600
  32.       TabIndex        =   2
  33.       Top             =   3120
  34.       Width           =   1215
  35.    End
  36.    Begin VB.Frame Frame1 
  37.       Height          =   3255
  38.       Left            =   120
  39.       TabIndex        =   0
  40.       Top             =   240
  41.       Width           =   4815
  42.       Begin VB.TextBox Text1 
  43.          Height          =   285
  44.          Left            =   480
  45.          TabIndex        =   4
  46.          Text            =   "http://"
  47.          Top             =   2520
  48.          Width           =   3495
  49.       End
  50.       Begin VB.Frame Frame2 
  51.          Caption         =   "HTML CODE"
  52.          Height          =   2055
  53.          Left            =   120
  54.          TabIndex        =   1
  55.          Top             =   240
  56.          Width           =   4575
  57.          Begin VB.TextBox Text2 
  58.             Height          =   1695
  59.             Left            =   120
  60.             MultiLine       =   -1  'True
  61.             ScrollBars      =   2  'Vertical
  62.             TabIndex        =   5
  63.             Top             =   240
  64.             Width           =   4335
  65.          End
  66.       End
  67.    End
  68. Attribute VB_Name = "Form1"
  69. Attribute VB_GlobalNameSpace = False
  70. Attribute VB_Creatable = False
  71. Attribute VB_PredeclaredId = True
  72. Attribute VB_Exposed = False
  73. Option Explicit
  74. Private Sub Command1_Click()
  75.     Dim strTempData As String
  76.     With InetWeb
  77.         .AccessType = icUseDefault
  78.         Text2 = .OpenURL(Text1.Text)
  79.     End With
  80. End Sub
  81. Private Sub Command2_Click()
  82.     Dim intFreeFile As Integer
  83.     Dim strTempString As String
  84.     Dim strLocation As String 'path of HTML file to save local
  85.     intFreeFile = FreeFile
  86.     strLocation = "c:\MyFile.htm"
  87.     Open strLocation For Output As #intFreeFile
  88.             Print #intFreeFile, Text2.Text
  89.     Close #intFreeFile
  90. End Sub
  91.